//
//  main.m
//  BOOL party
//
//  Created by huanghui on 16/4/24.
//  Copyright © 2016年 huanghui. All rights reserved.
//

#import <Foundation/Foundation.h>
//retunrs No if the two integers have the same如果不返还两个整数具有相同
//value,yes otherwise值，是的，否则
BOOL areIntsDifferent(int thing1,int thing2)
{
    if (thing1==thing2) {
        return NO;
    }else{
    
        return YES;
    }

}
NSString *boolstring(BOOL yesNo)
{
    if(yesNo==NO){
        return @"No";
        
    }else{
        return @"yes";
    
    }

}//boolstring

int main(int argc, const char * argv[]) {
    BOOL areTheyDIfferent;
    areTheyDIfferent=areIntsDifferent(5, 5);
    NSLog(@"are %d and %d different?%@",5,5,boolstring(areTheyDIfferent));
    
    areTheyDIfferent=areIntsDifferent(23, 42);
    NSLog(@"are %d and %d different?%@",23,42,boolstring(areTheyDIfferent));
    
    @autoreleasepool {
        // insert code here...
        NSLog(@"Hello, World!");
    }
    return 0;
}
